package com.zqwzd.dao.impl;

import java.util.List;
import java.util.Map;

import com.zqwzd.dao.IDiscountsDao;
import com.zqwzd.entity.Discounts;

public class DiscountsDaoImpl implements IDiscountsDao {

	private IDiscountsDao discountsMapper;
	
	public void addDiscounts(Discounts discounts) {
		discountsMapper.addDiscounts(discounts);
	}

	public IDiscountsDao getDiscountsMapper() {
		return discountsMapper;
	}

	public void setDiscountsMapper(IDiscountsDao discountsMapper) {
		this.discountsMapper = discountsMapper;
	}

	public List<Discounts> queryListDiscounts(Map<String, Object> paramsM) {
		return discountsMapper.queryListDiscounts(paramsM);
	}

	public Discounts queryDiscounts(Map<String, String> paramsM) {
		return discountsMapper.queryDiscounts(paramsM);
	}

	public int queryCountByCondition(Map<String, Object> paramsM) {
		return discountsMapper.queryCountByCondition(paramsM);
	}

	public void updateApproval(Discounts discounts) {
		discountsMapper.updateApproval(discounts);
	}

	public void deleteDiscounts(Map<String, Object> paramsM) {
		discountsMapper.deleteDiscounts(paramsM);
		
	}

}
